package com.mybatis.example.dao;

import com.mybatis.example.pojo.Teacher;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherMapper {
    @Select("select * from teacher where id = #{id};")
    Teacher getTeacherById(@Param("id") int id);

    public List<Teacher> getTeacher1(@Param("tid") int id);
    public List<Teacher> getTeacher2(@Param("tid") int id);
}
